﻿
namespace FindIt.Domain.Handlers.Categories {
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using FindIt.Data;

    public class GetCategories {
        private readonly ICategoryRepository _categoryRepository;

        public GetCategories(ICategoryRepository categoryRepository) {
            _categoryRepository = categoryRepository;
        }

        public IEnumerable<Model.Category> Execute() {
            return _categoryRepository.GetAll();
        }
    }
}
